wayland: Return properly type hints from GdkWindows
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 28 Aug 2014 12:10:00 +0000 (14:10 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 1 Sep 2014 17:17:54 +0000 (19:17 +0200)
This was hardcoded to GDK_WINDOW_TYPE_HINT_NORMAL, even though wayland
windows store the type hint themselves.

https://bugzilla.gnome.org/show_bug.cgi?id=697855

gdk/wayland/gdkwindow-wayland.c

index cfbc2996afadcb62aaebefa262f49e6923978d99..d40599e696c2460d6c77d6a135e29e7fce64644e 100644 (file)
@@ -1473,7 +1473,14 @@ gdk_wayland_window_set_type_hint (GdkWindow         *window,
 static GdkWindowTypeHint
 gdk_wayland_window_get_type_hint (GdkWindow *window)
 {
-  return GDK_WINDOW_TYPE_HINT_NORMAL;
+  GdkWindowImplWayland *impl;
+
+  if (GDK_WINDOW_DESTROYED (window))
+    return GDK_WINDOW_TYPE_HINT_NORMAL;
+
+  impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
+
+  return impl->hint;
 }
 
 void